求助``````

来源:百度知道 编辑:UC知道 时间:2024/09/21 08:32:02
用 Yurbo C编写1个2008年年历
要求是 任意输入2008年的摸个月 让显示器显示出来(样子就跟 挂历那样似的)。
要求采用 结构化程序设计方法进行编程
用swith结构实现选择分之结构
用while/do...while/for语句实现循环结构
利用标准函数 clrscr()实现清屏操作
拜托了。我急```要是的确能行的话,我还追加分数

不需要重复发明轮子,请自己找这个程序的源代码。

$ date --help
Usage: date [OPTION]... [+FORMAT]
or: date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
Display the current time in the given FORMAT, or set the system date.

-d, --date=STRING display time described by STRING, not `now'
-f, --file=DATEFILE like --date once for each line of DATEFILE
-r, --reference=FILE display the last modification time of FILE
-R, --rfc-2822 output date and time in RFC 2822 format.
Example: Mon, 07 Aug 2006 12:34:56 -0600
--rfc-3339=TIMESPEC output date and time in RFC 3339 format.
TIMESPEC=`date', `seconds', or `ns' for
date and time to the indicated precision.
Date and time components are separated by
a single space: 2006-08-07 12:34:56-06:00